package com.sure.yyr.security.home.dao;

import com.sure.yyr.security.home.Module;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface HomeDao {

    public List<Module> findModuleListByUser(String userId);

    @Update("update sys_user set u_avatar = #{avatar} where u_id = #{uid}")
    void updateAvatar(@Param("uid") String userId, @Param("avatar") String filename);
}
